package com.dragon.pear.modules.sample.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.sample.domain.entity.SmpOrderGoodsEntity;
import com.dragon.pear.modules.sample.web.model.params.create.SmpOrderGoodsCreateParam;
import com.dragon.pear.modules.sample.web.model.params.update.SmpOrderGoodsUpdateParam;
import com.dragon.pear.modules.sample.web.model.params.search.SmpOrderGoodsSearchParam;
import com.dragon.pear.modules.sample.web.model.params.order.SmpOrderGoodsOrderParam;
import com.dragon.pear.modules.sample.web.model.results.SmpOrderGoodsResult;
import com.dragon.pear.modules.sample.dao.repository.SmpOrderGoodsRepository;
import com.dragon.pear.modules.sample.service.assistants.converters.SmpOrderGoodsConverter;
import com.dragon.pear.modules.sample.service.def.SmpOrderGoodsService;
import com.dragon.pear.modules.sample.web.api.SmpOrderGoodsApi;

/**
 * @author Chris Chan
 * Create on 2025-10-15 17:59
 * Use for: 订单商品 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("smp/order/goods")
public class SmpOrderGoodsController implements SmpOrderGoodsApi, BaseCrudController<
        SmpOrderGoodsEntity,
        SmpOrderGoodsCreateParam,
        SmpOrderGoodsUpdateParam,
        SmpOrderGoodsSearchParam,
        SmpOrderGoodsOrderParam,
        SmpOrderGoodsResult,
        SmpOrderGoodsRepository,
        SmpOrderGoodsConverter,
        SmpOrderGoodsService
        > {

    @Autowired
    SmpOrderGoodsService smpOrderGoodsService;

    @Override
    public SmpOrderGoodsService getService() {
        return smpOrderGoodsService;
    }
}